<?php
namespace app\index\controller;

use app\index\controller\common as common;

use app\index\model\Shot as Shot;
use app\index\model\Shot_versions as Shot_versions;

use app\index\validate\ShotversioninfoCheck;
use app\index\validate\shotversionAddCheck;


class Shotversion extends common
{
   public function get_shot_id(){
	   	/*验证参数*/
	    $validate = new ShotversioninfoCheck();
	    list($msg,$result) = $validate->goapiCheck();
	    if($msg){
		   	list($msg,$result) = Shot::get_Shot_id();
		  }
	    return returnresult($msg,$result) ;    	 
	}

    public function add_shot_version()
    {
        /*验证参数*/
        $validate = new shotversionAddCheck();
        list($msg,$result)= $validate->goapiCheck();    
        if($msg){
            list($msg,$result) = Shot_versions::add_data();
        }
        return returnresult($msg,$result) ;  
    }
}

